package com.dvt.faceScan.httpUntil;

import android.util.Log;

/**
 * Created by XGJ on 2018/3/20.
 */

public class PostThread  extends Thread{
    private String url;
    private String param;
    private String accessToken;
    private String result = null;

    public void run() {
        try{
            result = HttpUtil.post(url, accessToken, param);
        }catch (Exception e){
            e.printStackTrace(System.err);
        }
    }

    public void setUrl(String url){
        this.url = url;
    }
    public void setParam(String param){
        this.param = param;
    }
    public void setAccessToken(String accessToken){
        this.accessToken = accessToken;
    }
    public String getResult(){
        return this.result;
    }
}
